package com.lyf.scm.common.enums;


import java.util.Arrays;
import java.util.List;

/**
 * 其它指标枚举类
 *
 * @author wangchlei
 * @date 2020/11/12
 */
public enum OtherTargetsEnum implements BaseOtherTargetEnum {
    /**
     * 实际销量
     */
    ACTUAL_SALES("actual_sales", "实际销量"),
    /**
     * 实时库存
     */
    REAL_TIME_STOCK("real_time_stock", "实时库存"),
    /**
     * 实际到仓数量
     */
    ACTUAL_QTY("ACTUAL_QTY", "实际到仓数量"),
    /**
     * 实际入库数量
     */
    ACTUAL_STORAGE_QTY("actual_storage_qty", "实际入库数量"),
    /**
     * 期末库存
     */
//    ENDING_INVENTORY("ending_inventory", "期末库存"),
    /**
     * 目标库存、安全库存、覆盖天数
     *
     * @see TiSsEnum
     */
    TI_SS_STOCK("ti_ss_stock", "目标库存、安全库存、覆盖天数"),
    /**
     * 采购中心(订单)批量指标（这部分的指标参考采购中心指标枚举类）
     *
     * @see PurchaseOrderTargetEnum
     */
    BATCH_PURCHASE_ORDER_TARGET("batch_purchase_order_target", "采购中心(订单)批量指标");
    /**
     * 需求计划
     */
    public static final List<OtherTargetsEnum> REQUIREMENT_PALN = Arrays.asList(ACTUAL_SALES, REAL_TIME_STOCK, ACTUAL_QTY, ACTUAL_STORAGE_QTY, TI_SS_STOCK, BATCH_PURCHASE_ORDER_TARGET);
    /**
     * 其他渠道计划
     */
    public static final List<OtherTargetsEnum> OTHER_PALN = Arrays.asList(ACTUAL_SALES);
    /**
     * 销售计划
     */
    public static final List<OtherTargetsEnum> SALES_PALN = Arrays.asList(ACTUAL_SALES);
    /**
     * 直营预测计划
     */
    public static final List<OtherTargetsEnum> DIRECTLY_PALN = Arrays.asList(ACTUAL_SALES);
    private String name;
    private String desc;

    OtherTargetsEnum(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }

    @Override
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    @Override
    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
